package eco2automotive.gui.components;
import java.awt.*;
import javax.swing.*;
import eco2automotive.gui.actions.Act_btn_MANUAL;

/** 
 * JPanel, manual commands by the user
  * @version 1.0
  * @autor Fco. Javier Sánchez Esparza
 */

public class Panel_MANUAL_ACT extends JPanel {
    JButton btn_MANUAL;
    JTextField txtField;

    /**
     * 
     * @param parent
     */
    public Panel_MANUAL_ACT(JFrame parent){
        
     setBorder(new javax.swing.border.TitledBorder("Manual Tx Data"));
     btn_MANUAL=new JButton("Send");          
     txtField= new JTextField();
     
     this.btn_MANUAL.addActionListener(new Act_btn_MANUAL(txtField,parent));
     
     this.setLayout (new GridLayout(1,2,2,2)); 
     add(txtField);
     add(btn_MANUAL);
    }

}
